const { MongoClient} = require('mongodb');
// Connection URL
const url = 'mongodb://106.15.59.219:10010';
const client = new MongoClient(url);
const dbName = 'Wechat-App';
async function main() {
  await client.connect();
  console.log('Connected successfully to server');
  const db = client.db(dbName);
  const collection = db.collection('expenditure');
  return collection;
}
module.exports = main;